<volist name="nav" id="list">
<notempty name="list['_child']">
<li class="dropdown">
    <a href="{:U('Index/index',array('category'=>$list['id']))}" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">
    {$list.name}
    <span class="caret"></span>
    </a>
    <ul class="dropdown-menu" role="menu">
        <volist name="list['_child']" id="child">
        <li>
            <a href="{:U('Index/index',array('category'=>$child['id']))}">{$child.name}</a>
        </li>
        </volist>
    </ul>
</li>
<else />

<li <if condition="$active eq $list['id'] ">class="active"<else /></if>>
    <a href="{:U('Index/index',array('category'=>$list['id']))}">{$list.name}</a>
</li>
</notempty>
</volist>